import request from '@apis/request'

const gets = () => { return request({ url: 'pages', method: 'get' }) }

const create = (data) => { return request({ url: 'pages', method: 'post', data }) }

const update = (data) => { return request({ url: `pages`, method: 'put', data }) }

const delet = (id) => { return request({ url: `pages/${id}`, method: 'delete' }) }

export default {
  gets,
  create,
  update, 
  delet
}